//
//  Library.m
//  OC05_练习
//
//  Created by dllo on 15/12/7.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Library.h"

@implementation Library

- (instancetype)init {
    self = [super init];
    if (self) {
        self.arr = [NSMutableArray array];
    }
    return self;
}


/** 添加图书 */
- (void)addBook:(Book *)book {
   
    [self.arr addObject:book];
      
}


/** 显示所有图书 */
- (void)listOfAllBook {
    for (Book *bo in self.arr) {
        NSLog(@"name:%@, price:%@", bo.name, bo.price);
    }
}


















@end
